package com.schoolcardinfo.biz.impl;

import java.util.List;

import com.schoolcardinfo.beans.Id_StudentInfo;
import com.schoolcardinfo.biz.IId_StudentInfoBiz;
import com.schoolcardinfo.dao.DBHelper;

public class Id_StudentInfoBizImpl implements IId_StudentInfoBiz{
	private DBHelper db=new DBHelper();
	@Override
	public Id_StudentInfo selectId_StudentInfo(int studentId) {
		String sql="select * from id_studentInfo where studentId="+studentId;
		if(db.getConnection()==null){
			db.getConnection();
		}
		List<Id_StudentInfo> list=db.find(sql, null, Id_StudentInfo.class);
		if(list.size()>0){
			return list.get(0);
		}else{
			return null;
		}
	}
}
